<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control " rows="5" name="row[title]"
                                cols="50">{$row['title']}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">视频上传:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatars" data-rule="" class="form-control" size="50" name="row[video]" type="text" value="{$row['video']}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatars" data-mimetype="video/mp4" data-multiple="true" data-preview-id="p-avatars"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatars" class="btn btn-primary fachoose" data-input-id="c-avatars" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatars"></span>
                </div>
                
                <ul class="row list-inline plupload-preview" id="p-avatars" style="width: 100%;"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">封面图上传:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatars1" data-rule="" class="form-control" size="50" name="row[img]" type="text" value="{$row['img']}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar1" class="btn btn-danger plupload" data-input-id="c-avatars1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatars1"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatars1" class="btn btn-primary fachoose" data-input-id="c-avatars1" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatars1"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-avatars1" style="width: 100%;"></ul>
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
